<%@page import = "clothing.database.SupplierManager" %>
<%@ include file = "templates/header.jsp" %>

<%
String iid = request.getParameter("id");

String Name= request.getParameter("Name");
String cn= request.getParameter("ContactNumber");
String Street = request.getParameter("Street");
String City = request.getParameter("City");
String State = request.getParameter("State");
String zip = request.getParameter("Zip");



int Zip = Integer.parseInt(zip);
int ContactNumber = Integer.parseInt(cn);

System.out.println("fdg "+iid);
int id = Integer.parseInt(iid);


SupplierManager sm = new SupplierManager();
sm.updateSupplier(id, Name, ContactNumber, Street, City, State, Zip);


response.sendRedirect("displaySupplier.jsp");
%>
<%@ include file = "templates/footer.jsp" %>